package com.geovis.emergency.spd.entity.command.pojo.vo;

import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.geovis.emergency.spd.entity.pc.handler.PgObjectJsonSerializer;
import com.geovis.emergency.spd.entity.pc.pojo.vo.PcDrillDutyOrgVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 指挥系统-演练事件列表vo对象
 */
@Getter
@Setter
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "CommandDrillDisasterVo", description = "指挥系统-演练事件列表vo对象")
public class CommandDrillDisasterVo {

    @ApiModelProperty("主键")
    private String id;


    @ApiModelProperty(value = "演练id")
    private String pcDrillId;


    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty("来源部门名称")
    private String sourceDept;

    @ApiModelProperty(value = "事件消息列表")
    private List<CommandDrillDisasterEventVo> eventMessages= Collections.emptyList();

    @ApiModelProperty("死亡人数")
    private Integer deathNum=0;

    @ApiModelProperty("失踪人数")
    private Integer missNum=0;

    @ApiModelProperty("受伤人数")
    private Integer injuredNum=0;

    @JsonSerialize(using = PgObjectJsonSerializer.class)
    private Object geometry;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    private String latitude;



}
